package com.example.xinli.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.xinli.domain.dto.ExUserDto;
import com.example.xinli.domain.entity.ExUser;
import com.example.xinli.domain.entity.User;
import com.example.xinli.domain.vo.LoginVo;
import com.example.xinli.domain.vo.ResponseBean;
import com.example.xinli.domain.vo.WxGetPhoneVo;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface IUserService extends IService<User> {
    public ResponseBean doLogin(LoginVo loginVo);

    public ResponseBean doLogout(String token);

    public ResponseBean getAllUserInfo();

    public ResponseBean getPreUserInfo();

    public ResponseBean getUserInfo(String token);

    public ResponseBean getUserRecords(String token);

    public ResponseBean getPhoneNumber(WxGetPhoneVo phoneVo);

    public Map<String, String> getUserPhonesByIds(Set<String> userIds);

    public Map<String, String> getUserExidByIds(Set<String> userIds);
    public String getUserPhoneById(String id);

    public ResponseBean setUserAvatar(String id,String avatarURL);

    public ResponseBean setUserName(String id,String name);

    public ResponseBean evalRole(String key);

    public ResponseBean setRole(String id,String role);

    public ResponseBean setevalKey(String key);

    public ResponseBean getAccessToken();

    public ResponseBean setUserGroup(ExUserDto exUserDto);

    public String getUserIdByOpenId(String openId);
}

